<%@page import="java.util.HashMap"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Khutro - Control panel</title>

<link rel="stylesheet" type="text/css" href="khutro/css/khutro.css">
<link rel="stylesheet" type="text/css" href="khutro/css/calendar-blue.css">
<link rel="stylesheet" type="text/css" href="khutro/css/jquery-ui.css">
<script type="text/javascript" src="khutro/js/jq.js"></script>
<script type="text/javascript" src="khutro/js/jq2.js"></script>
<script type="text/javascript" src="js/usermanager.js"></script>
<script type="text/javascript" src="khutro/js/superfish.js"></script>
<script type="text/javascript" src="khutro/js/calendar.js"></script>

<script type="text/javascript">
<!--
	$(document).ready(function() {
		$('#menu > ul').superfish({
			hoverClass : 'sfHover',
			pathClass : 'overideThisToUse',
			delay : 0,
			animation : {
				height : 'show'
			},
			speed : 'normal',
			autoArrows : false,
			dropShadows : false,
			disableHI : false, /* set to true to disable hoverIntent detection */
			onInit : function() {
			},
			onBeforeShow : function() {
			},
			onShow : function() {
			},
			onHide : function() {
			}
		});

		$('#menu > ul').css('display', 'block');
	});
</script>
</head>
<body>
	<form action="">
		<input type="hidden" id="roleId" />
	</form>
	<c:choose>

		<c:when test="${userRoleIdss ==1 }">
			<script language="javascript" type="text/javascript">
			<!--
				var dle_act_lang = [ "Yes", "No", "Enter", "Close" ];
			//-->
			</script>
			<div id="loading-layer">
				<div id="loading-layer-text">Please wait...</div>
			</div>

			<div id="container">
				<div id="header">
  <div class="div1">
    <div class="div2"><img src="khutro/images/logo.png" title="Administration" onclick="location = adminloadsystem.action" alt=""></div>
        <div class="div3"><img src="./khutro/images/lock.png" alt="" style="position: relative; top: 3px;">&nbsp;Welcome:  <span><s:property value="#session['displayNamess']" /> (Administrator)</span> &nbsp; <a href="logout.action" class="navigation">Logout</a></div>
      </div>
    <div id="menu">
    <ul class="left sf-js-enabled" style="display: block; ">
      <li><a href="adminloadsystem.action" class="top">Quick Links</a>
        <ul style="display: none; visibility: hidden; ">
          <li><a href="checkaddtopic.action">Add PostNews</a></li>
          <li><a href="checkaddsharetopic.action">Add ShareNews</a></li>
          <li><a href="admin-listtopicload.action">Edit (Reviews/Approve) News</a></li>
          <li><a href="adminspamtopicdo.action">Report Topic</a></li>
          <li><a href="admin-locationload.action">Location</a></li>
        </ul>
      </li>
      <li class=""><a class="top">User Management</a>
        <ul style="visibility: hidden; display: none; ">
          <li><a href="admin-userlistload.action">Users</a></li>
          <li><a href="profileuser.action">Admin Profile </a></li>
        </ul>
      </li>
      <li class=""><a class="top" href="adminlogs.action">Activity Logs and Monitors</a>
      </li>
    </ul>
    <ul style="display: block; " class="right sf-js-enabled">
      <li><a href="adminloadsystem.action" class="top">Quick Links</a></li>
      <li style="cursor:pointer !important"><a onclick="window.open('index.action');" class="top">View Live Site</a></li>
<!--      <li><a class="top" href="/admin.jsp?action=logout">Logout</a></li> -->
    </ul>
  </div>
  </div>
				<div id="content">

					<table align="center" id="main_body" style="width: 98%;">
						<tbody>
							<tr>
								<td width="4" height="16"><img
									src="khutro/images/tb_left.gif" width="4" height="16"
									border="0">
								</td>
								<td background="khutro/images/tb_top.gif"><img
									src="khutro/images/tb_top.gif" width="1" height="16" border="0">
								</td>
								<td width="4"><img src="khutro/images/tb_right.gif"
									width="3" height="16" border="0">
								</td>
							</tr>
							<tr>
								<td width="4" background="khutro/images/tb_lt.gif"><img
									src="khutro/images/tb_lt.gif" width="4" height="1" border="0">
								</td>
								<td valign="top"
									style="padding-top: 12px; padding-left: 13px; padding-right: 13px;"
									bgcolor="#FAFAFA">
									<!--MAIN area-->
									<script type="text/javascript">
									<!-- begin
										function popupedit(id) {
											
											var rndval = new Date().getTime();

											$('body')
													.append(
															'<div id="modal-overlay" style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #666666; opacity: .40;filter:Alpha(Opacity=40); z-index: 999; display:none;"></div>');
											$('#modal-overlay').css({
												'filter' : 'alpha(opacity=40)'
											}).fadeIn('slow');

											$("#dleuserpopup").remove();
											$("body")
													.append(
															"<div id='dleuserpopup' title='Edit user ' style='display:none'></div>");

											$('#dleuserpopup')
													.dialog(
															{
																autoOpen : true,
																width : 560,
																height : 500,
																dialogClass : "modalfixed",
																buttons : {
																	"Close" : function() {
																		$(this).dialog("close");
																		$(
																				"#dleuserpopup")
																				.remove();
																	},
																	"Save" : function() {

																		document
																				.getElementById('edituserframe').contentWindow.document
																				.getElementById(
																						'saveuserform')
																				.submit();

																	}
																},
																open : function(
																		event,
																		ui) {
																	$(
																			"#dleuserpopup")
																			.html(
																					"<iframe name='edituserframe' id='edituserframe' width='100%' height='400' src='edituser.action?UsersId="
																							+ id
																							+ "' frameborder='0' marginwidth='0' marginheight='0' allowtransparency='true'></iframe>");
																},
																beforeClose : function(
																		event,
																		ui) {
																	$("#dleuserpopup").html("");
																},
																close : function(
																		event,
																		ui) {
																	$('#modal-overlay').fadeOut('slow',
																					function() {
																						$('#modal-overlay').remove();
																						document.location = "admin-userlistload.action";
																					});
																}
															});

											if ($(window).width() > 830
													&& $(window).height() > 530) {
												$('.modalfixed.ui-dialog').css(
														{
															position : "fixed"
														});
												$('#dleuserpopup').dialog(
														"option", "position",
														[ '0', '0' ]);
											}

											return false;

										}

										function confirmdelete(id) {
											DLEconfirm(
													"Remove this user? ",
													"Confirm",
													function() {
														alert(id);
														//deleteusername(id);
														document.location = "admindeleteuser.action?usersId="+ id;
													});
										}
										function clearform(frm) {
											for ( var i = 0; i < frm.length; i++) {
												var el = frm.elements[i];
												if (el.type == "checkbox"
														|| el.type == "radio") {
													el.checked = 0;
													continue;
												}
												if ((el.type == "text")
														|| (el.type == "textarea")
														|| (el.type == "password")) {
													el.value = "";
													continue;
												}
												if ((el.type == "select-one")
														|| (el.type == "select-multiple")) {
													el.selectedIndex = 0;
												}
											}
											document.searchform.start_from.value = "";
										}
										function list_submit(prm) {
											document.searchform.start_from.value = prm;
											document.searchform.submit();
											return false;
										}
									// end -->
									</script>
									<!-- calendar stylesheet -->
									<form method="post" action="adminadduser.action">
										<div style="padding-top: 5px; padding-bottom: 2px;">
											<table width="100%">
												<tbody>
													<tr>
														<td width="4"><img src="khutro/images/tl_lo.gif"
															width="4" height="4" border="0">
														</td>
														<td background="khutro/images/tl_oo.gif"><img
															src="khutro/images/tl_oo.gif" width="1" height="4"
															border="0">
														</td>
														<td width="6"><img src="khutro/images/tl_ro.gif"
															width="6" height="4" border="0">
														</td>
													</tr>
													<tr>
														<td background="khutro/images/tl_lb.gif"><img
															src="khutro/images/tl_lb.gif" width="4" height="1"
															border="0">
														</td>
														<td style="padding: 5px;" bgcolor="#FFFFFF">
															<table width="100%">
																<tbody>
																	<tr>
																		<td bgcolor="#EFEFEF" height="29"
																			style="padding-left: 10px;"><div
																				class="navigation">Add User</div>
																		</td>
																	</tr>
																</tbody>
															</table>
															<div class="unterline"></div>
															<table width="100%">
																<tbody>
																	<tr>
																		<td width="140" style="padding: 4px;">User name:</td>
																		<td><input class="edit bk" size="21" type="text"
																			name="regusername" id="displayName">
																		</td>
																	</tr>
																	<tr>
																		<td style="padding: 4px;">Password:</td>
																		<td><input class="edit bk" size="21" type="text"
																			name="regpassword" id="password">
																		</td>
																	</tr>
																	<tr>
																		<td style="padding: 4px;">Email:</td>
																		<td><input class="edit bk" size="21" type="text"
																			name="regemail" id="email">
																		</td>
																	</tr>
																	<tr>
																		<td style="padding: 4px;">User group:</td>
																		<td><select name="reglevel" id="Roles">
																		<option value="0">--all--</option>
																		<s:iterator value="lstRoles">
																				<option value="${roleId }">${roleName }</option>
																		</s:iterator>
																		</select></td>
																	</tr>
																	<tr>
																		<td>&nbsp;</td>
																		<td style="padding-top: 10px;"><input
																			type="button" id="submitAdminadduser" class="buttons" value="Add"
																			style="width: 100px;">
																		</td>
																	</tr>
																</tbody>
															</table></td>
														<td background="khutro/images/tl_rb.gif"><img
															src="khutro/images/tl_rb.gif" width="6" height="1"
															border="0">
														</td>
													</tr>
													<tr>
														<td><img src="khutro/images/tl_lu.gif" width="4"
															height="6" border="0">
														</td>
														<td background="khutro/images/tl_ub.gif"><img
															src="khutro/images/tl_ub.gif" width="1" height="6"
															border="0">
														</td>
														<td><img src="khutro/images/tl_ru.gif" width="6"
															height="6" border="0">
														</td>
													</tr>
												</tbody>
											</table>
										</div>
									</form>
									<form name="searchform" id="searchform" method="post"
										action="adminsearch.action">
										<div style="padding-top: 5px; padding-bottom: 2px;">
											<table width="100%">
												<tbody>
													<tr>
														<td width="4"><img src="khutro/images/tl_lo.gif"
															width="4" height="4" border="0">
														</td>
														<td background="khutro/images/tl_oo.gif"><img
															src="khutro/images/tl_oo.gif" width="1" height="4"
															border="0">
														</td>
														<td width="6"><img src="khutro/images/tl_ro.gif"
															width="6" height="4" border="0">
														</td>
													</tr>
													<tr>
														<td background="khutro/images/tl_lb.gif"><img
															src="khutro/images/tl_lb.gif" width="4" height="1"
															border="0">
														</td>
														<td style="padding: 5px;" bgcolor="#FFFFFF">
															<table width="100%">
																<tbody>
																	<tr>
																		<td bgcolor="#EFEFEF" height="29"
																			style="padding-left: 10px;"><div
																				class="navigation">Search for users: To view
																				all members press [find] without making any
																				selections below</div>
																		</td>
																	</tr>
																</tbody>
															</table>
															<div class="unterline"></div>
															<table width="100%">
																<tbody>
																	<tr>
																		<td width="140" style="padding: 2px;">Email:</td>
																		<td style="padding-bottom: 4px;"><input size="21"
																			class="edit bk" type="text" name="search_email"
																			id="search_email" value="${search_email }">
																		</td>
																		<td style="padding-left: 5px;">Join date:</td>
																		<td style="padding-left: 5px;">from</td>
																		<td><input type="text" name="fromregdate"
																			id="fromregdate" size="17" maxlength="16"
																			class="edit bk" value="${fromregdate }"> <img
																			src="khutro/images/img.gif" align="absmiddle"
																			id="f_trigger_reg" style="cursor: pointer; border: 0"
																			title="Choose date by calendar "> <script
																				type="text/javascript">
																				Calendar
																						.setup({
																							inputField : "fromregdate", // id of the input field
																							ifFormat : "%Y-%m-%d", // format of the input field
																							button : "f_trigger_reg", // trigger for the calendar (button ID)
																							align : "Br", // alignment 
																							timeFormat : "24",
																							showsTime : true,
																							singleClick : true
																						});
																			</script>
																		</td>
																		<td style="padding-left: 5px;">to</td>
																		<td><input type="text" name="toregdate"
																			id="toregdate" size="17" maxlength="16"
																			class="edit bk" value="${toregdate }"> <img
																			src="khutro/images/img.gif" align="absmiddle"
																			id="t_trigger_reg" style="cursor: pointer; border: 0"
																			title="Choose date by calendar "> <script
																				type="text/javascript">
																				Calendar
																						.setup({
																							inputField : "toregdate", // id of the input field
																							ifFormat : "%Y-%m-%d", // format of the input field
																							button : "t_trigger_reg", // trigger for the calendar (button ID)
																							align : "Br", // alignment 
																							timeFormat : "24",
																							showsTime : true,
																							singleClick : true
																						});
																			</script>
																		</td>

																	</tr>
																	<tr>
																		<td style="padding: 2px;">Display name:</td>
																		<td><input size="21" class="edit bk" type="text"
																			name="search_name" id="search_name" value="${search_name }">
																		</td>

																		<td style="padding-left: 5px;">Last activity:</td>
																		<td style="padding-left: 5px;">from</td>
																		<td><input type="text" name="fromentdate"
																			id="fromentdate" size="17" maxlength="16"
																			class="edit bk" value="${fromentdate }"> <img
																			src="khutro/images/img.gif" align="absmiddle"
																			id="f_trigger_ent" style="cursor: pointer; border: 0"
																			title="Choose date by calendar "> <script
																				type="text/javascript">
																				Calendar
																						.setup({
																							inputField : "fromentdate", // id of the input field
																							ifFormat : "%Y-%m-%d", // format of the input field
																							button : "f_trigger_ent", // trigger for the calendar (button ID)
																							align : "Br", // alignment 
																							timeFormat : "24",
																							showsTime : true,
																							singleClick : true
																						});
																			</script>
																		</td>
																		<td style="padding-left: 5px;">to</td>
																		<td><input type="text" name="toentdate"
																			id="toentdate" size="17" maxlength="16"
																			class="edit bk" value="${toentdate }"> <img
																			src="khutro/images/img.gif" align="absmiddle"
																			id="t_trigger_ent" style="cursor: pointer; border: 0"
																			title="Choose date by calendar "> <script
																				type="text/javascript">
																				Calendar
																						.setup({
																							inputField : "toentdate", // id of the input field
																							ifFormat : "%Y-%m-%d", // format of the input field
																							button : "t_trigger_ent", // trigger for the calendar (button ID)
																							align : "Br", // alignment 
																							timeFormat : "24",
																							showsTime : true,
																							singleClick : true
																						});
																			</script>
																		</td>

																	</tr>
																	<tr>
																		<td style="padding: 2px;">Banned:</td>
																		<td>
																		 <s:if test="search_banned==1">
																			<input checked type="checkbox" name="search_banned" id="search_banned" value="1">
																		</s:if>
																		<s:else>
																			<input type="checkbox" name="search_banned" id="search_banned" value="1">
																		</s:else>
																		</td>
																		<td style="padding-left: 5px;">&nbsp;</td>
																		<td style="padding-left: 5px;">&nbsp;</td>
																		<td>&nbsp;</td>
																		<td style="padding-left: 5px;">&nbsp;</td>
																		<td>&nbsp;</td>
																	</tr>
																	<tr>
																		<td style="padding: 2px;">User group:</td>
																		<td><select name="search_reglevel"
																			id="search_reglevel">
																				<option value="0">--all--</option>
																		<s:iterator value="lstRoles">
																				<c:choose>
																					<c:when test="${search_reglevel==roleId }">
																						<option selected value="${roleId }">${roleName }</option>
																					</c:when>
																					<c:otherwise>
																						<option value="${roleId }">${roleName }</option>
																					</c:otherwise>
																				</c:choose>
																		</s:iterator>

																		</select></td>
																		<td style="padding-left: 5px;">&nbsp;</td>
																		<td style="padding-left: 5px;">&nbsp;</td>
																		<td>&nbsp;</td>
																		<td style="padding-left: 5px;">&nbsp;</td>
																		<td>&nbsp;</td>

																	</tr>
																	<tr>
																		<td colspan="7"><div class="hr_line"></div>
																		</td>
																	</tr>
																	<tr>
																		<td colspan="7" style="padding-left: 5px;">List
																			users by</td>
																	</tr>
																	<tr>
																		<td style="padding: 5px;">Join date:</td>
																		<td style="padding: 5px;">Last visit:</td>
																		<td style="padding: 5px;">&nbsp;</td>
																		<td style="padding: 5px;" colspan="2">&nbsp;</td>
																		<td style="padding: 5px;" colspan="2">&nbsp;</td>
																	</tr>
																	<tr>
																		<td style="padding-left: 2px;"><select
																			name="search_order_r" id="search_order_r">
																			
																			
																			<s:if test="search_order_r=='desc'">
																				<option value="0">-- </option>
																				<option selected value="desc">Descending</option>
																				<option value="asc">Ascending</option>
																			</s:if>
																			<s:elseif test="search_order_r=='asc'">
																				<option value="0">-- </option>
																				<option value="desc">Descending</option>
																				<option selected value="asc">Ascending</option>
																			</s:elseif>
																			<s:else>
																				<option selected value="0">-- </option>
																				<option value="desc">Descending</option>
																				<option value="asc">Ascending</option>
																			</s:else>	
																			
																		</select>
																		</td>
																		<td style="padding-left: 2px;"><select
																			name="search_order_l" id="search_order_l">
																				<s:if test="search_order_l=='desc'">
																				<option value="0">-- </option>
																				<option selected value="desc">Descending</option>
																				<option value="asc">Ascending</option>
																			</s:if>
																			<s:elseif test="search_order_l=='asc'">
																				<option value="0">-- </option>
																				<option value="desc">Descending</option>
																				<option selected value="asc">Ascending</option>
																			</s:elseif>
																			<s:else>
																				<option selected value="0">-- </option>
																				<option value="desc">Descending</option>
																				<option value="asc">Ascending</option>
																			</s:else>	

																		</select>
																		</td>
																		<td style="padding-left: 2px;">&nbsp;</td>
																		<td style="padding-left: 2px;" colspan="2">&nbsp;</td>
																		<td style="padding-left: 2px;" colspan="2">&nbsp;</td>
																	</tr>
																	<tr>
																		<td colspan="7"><div class="hr_line"></div>
																		</td>
																	</tr>
																	<tr>
																		<td valign="top" style="padding-top: 10px;"><input
																			type="submit" class="buttons" value="Find"
																			style="width: 100px;" />
																		</td>
																		<td valign="top" style="padding-top: 10px;"><input
																			type="button" class="buttons" value="Clear"
																			onclick="javascript:clearform(document.searchform);"
																			style="width: 100px;" />
																		</td>
																		<td style="padding-top: 10px;"></td>
																		<td colspan="4" style="padding-top: 10px;">&nbsp;</td>
																	</tr>
																</tbody>
															</table></td>
														<td background="khutro/images/tl_rb.gif"><img
															src="khutro/images/tl_rb.gif" width="6" height="1"
															border="0">
														</td>
													</tr>
													<tr>
														<td><img src="khutro/images/tl_lu.gif" width="4"
															height="6" border="0">
														</td>
														<td background="khutro/images/tl_ub.gif"><img
															src="khutro/images/tl_ub.gif" width="1" height="6"
															border="0">
														</td>
														<td><img src="khutro/images/tl_ru.gif" width="6"
															height="6" border="0">
														</td>
													</tr>
												</tbody>
											</table>
										</div>
									</form>
									<script language="javascript" type="text/javascript">
									<!--
										function cdelete(id) {
											DLEconfirm(
													'Are you sure you want to remove all user comments?',
													'Confirm',
													function() {
														document.location = '?mod=editusers&action=dodelcomments&user_hash=204acc5132817318ad9431a17ba4713c&id='
																+ id + '';
													});
										}
										function MenuBuild(m_id) {

											var menu = new Array()

											menu[0] = '<a href="adminsystem?do=lastcomments&userid='
													+ m_id
													+ '" target="_blank">View</a>';
											menu[1] = '<a onClick="javascript:cdelete('
													+ m_id
													+ '); " href="?mod=editusers&action=dodelcomments&user_hash=204acc5132817318ad9431a17ba4713c&id='
													+ m_id
													+ '" >Remove all</a>';

											return menu;
										}

										function ckeck_uncheck_all() {
											var frm = document.editusers;
											for ( var i = 0; i < frm.elements.length; i++) {
												var elmnt = frm.elements[i];
												if (elmnt.type == 'checkbox') {
													if (frm.master_box.checked == true) {
														elmnt.checked = false;
													} else {
														elmnt.checked = true;
													}
												}
											}
											if (frm.master_box.checked == true) {
												frm.master_box.checked = false;
											} else {
												frm.master_box.checked = true;
											}
										}
									//-->
									</script>
									<form action="" method="post" name="editusers">
										<div style="padding-top: 5px; padding-bottom: 2px;">
											<table width="100%">
												<tbody>
												
													<tr>
														<td width="4"><img src="khutro/images/tl_lo.gif"
															width="4" height="4" border="0">
														</td>
														<td background="khutro/images/tl_oo.gif"><img
															src="khutro/images/tl_oo.gif" width="1" height="4"
															border="0">
														</td>
														<td width="6"><img src="khutro/images/tl_ro.gif"
															width="6" height="4" border="0">
														</td>
													</tr>
													<tr>
														<td background="khutro/images/tl_lb.gif"><img
															src="khutro/images/tl_lb.gif" width="4" height="1"
															border="0">
														</td>
														<td style="padding: 5px;" bgcolor="#FFFFFF">
															<table width="100%">
																<tbody>
																	<tr>
																		<td bgcolor="#EFEFEF" height="29"
																			style="padding-left: 10px;"><div
																				class="navigation">Members List (${sizelist })</div>
																		</td>
																	</tr>
																</tbody>
															</table>
															<div class="unterline"></div>
															<table width="100%" id="userslist">
																<tbody>
																	<tr><td>
																		<div class="thead">
																		<div style="width: 200px;height: 22px;float: left;padding: 2px">Email:</div>
																		<div style="width: 152px;height: 22px;float: left;">Join date:</div>
																		<div style="width: 3px;height: 22px;float: left;">&nbsp;</div>
																		<div style="width: 152px;height: 22px;float: left;">Last visit:</div>
																		<div style="width: 10px;height: 22px;float: left;">&nbsp;</div>
																		<div style="width: 150px;height: 22px;float: left;text-align: left;">Display Name:</div>
																		<div style="height: 22px;float: left;">&nbsp;</div>
																		<div style="width: 80px;height: 22px;float: left;text-align: left;">User group:</div>
																		<div style="width: 108px;height: 22px;float: left;">Action:</div>
																		<div style="width: 24px;height: 22px;float: left;">&nbsp;</div>
																		<div style="height: 1px;width: 100%;float: left;background: url('khutro/images/mline.gif') repeat-x;"></div>
																		</div>
																		</td>	
																	</tr>
																	<tr class="thead">
																		<th colspan="10"><div class="hr_line"></div></th>
																	</tr>
																	
																	<tr>
																		<td>
																	<div id="abcdiencmnr">
																		<display:table id="lstusers" name="lstusers" pagesize="20"
					requestURI="/adminsearch.action" offset="1">
					<display:column>
																		<div id="lineuser" class="thead">
																			<div style="width: 200px;height: 22px;float: left;padding: 2px;overflow: hidden;">&nbsp;<a
																				href="viewuserprofile?user_Id=${lstusers[0]}"
																				target="_blank">${lstusers[2]}
																			</a></div>
																			<div style="width: 152px;height: 22px;float: left;">${lstusers[3]}
																			</div>
																			<div style="width: 3px;height: 22px;float: left;">&nbsp;</div>
																			<div style="width: 152px;height: 22px;float: left;">${lstusers[4]}
																			</div>
																			<div style="width: 10px;height: 22px;float: left;"></div>
																			<div style="width: 150px;height: 22px;float: left;text-align: left;">${lstusers[1]}
																			</div>
																			<div style="height: 22px;float: left;"></div>
																			
																				<c:choose>
																				<c:when test="${lstusers[7]==1}">
																					<div style="width: 80px;height: 22px;float: left;color: red;">
																					Banner
																					</div>
																				</c:when>
																					<c:otherwise>
																						<div style="width: 80px;height: 22px;float: left;">
																						${lstusers[5]}
																						</div>
																					</c:otherwise>
																				</c:choose>
																				
																			
																			<div style="width: 108px;height: 22px;float: left;"><nobr>
																					[<a class="maintitle"
																						onclick="javascript:popupedit('${lstusers[0]}');return(false);"
																						href="javascript:void(0);">Edit</a>]&nbsp;
																					
																				</nobr></div>
																			<div style="width: 24px;height: 22px;float: left;"></div>
																			<div style="height: 1px;width: 100%;float: left;background: url('khutro/images/mline.gif' repeat-x);"></div>
																		</div>								
																	</display:column>
																	</display:table>
																	</div>
																	</td>
																	</tr>
																	</tbody>
																	
															</table></td>
														<td background="khutro/images/tl_rb.gif"><img
															src="khutro/images/tl_rb.gif" width="6" height="1"
															border="0">
														</td>
													</tr>
													<tr>
														<td><img src="khutro/images/tl_lu.gif" width="4"
															height="6" border="0">
														</td>
														<td background="khutro/images/tl_ub.gif"><img
															src="khutro/images/tl_ub.gif" width="1" height="6"
															border="0">
														</td>
														<td><img src="khutro/images/tl_ru.gif" width="6"
															height="6" border="0">
														</td>
													</tr>
													
												</tbody>
												
											</table>
										</div>
									</form> <script type="text/javascript">
										$(function() {

											$("#userslist").delegate(
													"tr",
													"hover",
													function() {
														$(this).toggleClass(
																"hoverRow");
													});

										});
									</script> <!--MAIN area-->
									<div style="height: 8px; display: block"></div></td>
								<td width="4" background="khutro/images/tb_rt.gif"><img
									src="khutro/images/tb_rt.gif" width="4" height="1" border="0">
								</td>
							</tr>
							<tr>
								<td height="16" background="khutro/images/tb_lb.gif"></td>
								<td background="khutro/images/tb_tb.gif"></td>
								<td background="khutro/images/tb_rb.gif"></td>
							</tr>
						</tbody>
					</table>

					<div style="padding-bottom: 10px;">
						<table width="100%">
							<tbody>
								<tr>
									<td height="40" align="center" style="padding-right:10px;background: #FAFAFA url('engine/skins/images/footer.gif') repeat-x 0 0;"><div class="navigation">Fu Team | FSH-Project<br>Copyright 2012©. All rights reserved.</div></td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>

			</div>

			<script language="javascript" type="text/javascript">
			<!--
				function getClientWidth() {
					return document.compatMode == 'CSS1Compat' && !window.opera ? document.documentElement.clientWidth
							: document.body.clientWidth;
				}
				var main_body_size = getClientWidth();

				if (main_body_size > 1300)
					document.getElementById('main_body').style.width = "1200px";
			//-->
			</script>


			<div id="hintbox"></div>
		</c:when>
		<c:otherwise>
			<c:redirect url="adminlogin.jsp" />
		</c:otherwise>
	</c:choose>
</body>
</html>